﻿using K9Nano.Application;
using K9Nano.Dependency;

namespace Microsoft.Extensions.DependencyInjection
{
    public static class ApplicationServiceCollectionExtensions
    {
        public static IK9NanoAppBuilder AddK9Application(this IK9NanoAppBuilder builder)
        {
            builder.Services.AddScoped(typeof(CurdApplicationService<,,,,,>));

            builder.Services.RegisterConventionalAssembly(typeof(ApplicationServiceCollectionExtensions).Assembly);

            return builder;
        }
    }
}